package de.hijacksoft.isle.classes;

import android.graphics.Color;

/**
 * Klasse zum abspeichern globaler Variablen
 * @author Basti, Philipp
 */
public class Variables {

    public static final String CAMERA_FOLDER = "/sdcard/DCIM/Camera/";
    public static final long ONE_DAY = 86400000;
    // Result Codes
    public static final int CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE = 1337;
    public static final int BARCODE_ACTIVITY_REQUEST_CODE = 42;
    public static final int ITEM_RETURNED = 1;
    public static final int RECIPE_RETURNED = 2;
    public static final int VOICE_RECOGNITION_REQUEST_CODE = 3;
    public static final int ITEM_EDIT = 7;
    public static final int TUTORIAL = 8;
    // Item return modes
    public static final int MODE_MAIN = 0;
    public static final int MODE_RECIPE = 1;
    // Extra keys
    public static final String KEY_MODE = "mode";
    public static final String KEY_ID = "id";
    public static final String KEY_NAME = "name";
    public static final String KEY_AMOUNT = "amount";
    public static final String KEY_LISTMODE = "listmode";
    // Image Category
    public static final int THUMBNAIL_SIZE = 128;
    // Preferences
    public static final String PREFERENCE_AUTOGENERATE = "autoGenerate";
    public static final String PREFERENCE_RECIPECOUNT = "numOfRecipes";
    public static final String PREFERENCE_SHOWICONS = "showIcons";
    public static final String PREFERENCE_SHOWPRICE = "showPrice";
    public static final String PREFERENCE_USEONLINE = "useOnline";
    public static final String PREFERENCE_USERECIPES = "useRecipes";
    public static final String PREFERENCE_TUTORIAL = "tutorial";
    public static final String PREFERENCE_KEEPSCREENON = "keepScreenOn";
    public static final String PREFERENCE_GENERATEITEMS = "generateItems";
    public static final String PREFERENCE_SHOWCATEGORY = "showCategories";
    public static final String PREFERENCE_LISTMODE = "listMode";
    // Ports
    public static final int  PORT_ADBUSBPORT = 38300;
    // Colors used in categories
    public static final int[] COLORS = {
        Color.BLUE,
        Color.CYAN,
        Color.MAGENTA,
        Color.RED,
        Color.GREEN,
        Color.YELLOW,
        Color.WHITE,
        Color.LTGRAY,
        Color.GRAY,
        Color.DKGRAY,};
}
